/**
 * @module task 任务管理
 */
'use strict'

import { Route, withRouter } from 'react-router'
import React from 'react'

import Task from './components/Task'
import Reject from './components/Reject'
import Cancel from './components/Cancel'
import ReSchedule from './components/ReSchedule'

import * as enums from './enums'

const route = (
    <Route key="task" path="">
        <Route path=":id" component={withRouter(Task)}/>
        <Route path="reject/:id" component={withRouter(Reject)}/>
        <Route path="cancel/:id" component={withRouter(Cancel)}/>
        <Route path="reschedule/:id" component={withRouter(ReSchedule)}/>
    </Route>
)

const components = {
    Task
}

export default {
    route,
    components,
    enums
}
